Remove DOMU_BUILD_STAGING and supporting code entirely, no longer needed
authordjm@kirby.fc.hp.com <djm@kirby.fc.hp.com>
Fri, 18 Nov 2005 16:01:10 +0000 (10:01 -0600)
committerdjm@kirby.fc.hp.com <djm@kirby.fc.hp.com>
Fri, 18 Nov 2005 16:01:10 +0000 (10:01 -0600)
xen/arch/ia64/xen/domain.c
xen/arch/ia64/xen/hypercall.c
xen/arch/ia64/xen/xensetup.c

index aa1e470f4fdf9c8135183a120218a6f608425cd5..c2530421d2a6ebe654c945250f4a11a5be99c226 100644 (file)
 unsigned long dom0_start = -1L;
 unsigned long dom0_size = 512*1024*1024;
 unsigned long dom0_align = 64*1024*1024;
-#ifdef DOMU_BUILD_STAGING
-unsigned long domU_staging_size = 32*1024*1024; //FIXME: Should be configurable
-unsigned long domU_staging_start;
-unsigned long domU_staging_align = 64*1024;
-unsigned long *domU_staging_area;
-#endif
 
 // initialized by arch/ia64/setup.c:find_initrd()
 unsigned long initrd_start = 0, initrd_end = 0;
@@ -750,46 +744,6 @@ void alloc_dom0(void)
 
 }
 
-#ifdef DOMU_BUILD_STAGING
-void alloc_domU_staging(void)
-{
-       domU_staging_size = 32*1024*1024; //FIXME: Should be configurable
-       printf("alloc_domU_staging: starting (initializing %d MB...)\n",domU_staging_size/(1024*1024));
-       domU_staging_start = alloc_boot_pages(
-            domU_staging_size >> PAGE_SHIFT, domU_staging_align >> PAGE_SHIFT);
-        domU_staging_start <<= PAGE_SHIFT;
-       if (!domU_staging_size) {
-               printf("alloc_domU_staging: can't allocate, spinning...\n");
-               while(1);
-       }
-       else domU_staging_area = (unsigned long *)__va(domU_staging_start);
-       printf("alloc_domU_staging: domU_staging_area=%p\n",domU_staging_area);
-
-}
-
-unsigned long
-domU_staging_read_8(unsigned long at)
-{
-       // no way to return errors so just do it
-       return domU_staging_area[at>>3];
-       
-}
-
-unsigned long
-domU_staging_write_32(unsigned long at, unsigned long a, unsigned long b,
-       unsigned long c, unsigned long d)
-{
-       if (at + 32 > domU_staging_size) return -1;
-       if (at & 0x1f) return -1;
-       at >>= 3;
-       domU_staging_area[at++] = a;
-       domU_staging_area[at++] = b;
-       domU_staging_area[at++] = c;
-       domU_staging_area[at] = d;
-       return 0;
-       
-}
-#endif
 
 /*
  * Domain 0 has direct access to all devices absolutely. However
@@ -1076,29 +1030,6 @@ void reconstruct_domU(struct vcpu *v)
 }
 #endif
 
-// FIXME: When dom0 can construct domains, this goes away (or is rewritten)
-int launch_domainU(unsigned long size)
-{
-#ifdef CLONE_DOMAIN0
-       static int next = CLONE_DOMAIN0+1;
-#else
-       static int next = 1;
-#endif 
-
-       struct domain *d = do_createdomain(next,0);
-       if (!d) {
-               printf("launch_domainU: couldn't create\n");
-               return 1;
-       }
-       else next++;
-       if (construct_domU(d, (unsigned long)domU_staging_area, size,0,0,0)) {
-               printf("launch_domainU: couldn't construct(id=%d,%lx,%lx)\n",
-                       d->domain_id,domU_staging_area,size);
-               return 2;
-       }
-       domain_unpause_by_systemcontroller(d);
-}
-
 void machine_restart(char * __unused)
 {
        if (platform_is_hp_ski()) dummy();
index 13f17500a9124f331dadbc82b2f732d58291bf32..f195c2ba7923cd461bdda5c6e3f6dfbd9be68198 100644 (file)
@@ -123,32 +123,16 @@ ia64_hypercall (struct pt_regs *regs)
                // FIXME: need fixes in efi.h from 2.6.9
                regs->r8 = EFI_UNSUPPORTED;
                break;
-           case 0xffff: // test dummy hypercall
+           case 0xffff:
                regs->r8 = dump_privop_counts_to_user(
                        vcpu_get_gr(v,32),
                        vcpu_get_gr(v,33));
                break;
-           case 0xfffe: // test dummy hypercall
+           case 0xfffe:
                regs->r8 = zero_privop_counts_to_user(
                        vcpu_get_gr(v,32),
                        vcpu_get_gr(v,33));
                break;
-           case 0xfffd: // test dummy hypercall
-               regs->r8 = launch_domainU(
-                       vcpu_get_gr(v,32));
-               break;
-           case 0xfffc: // test dummy hypercall
-               regs->r8 = domU_staging_write_32(
-                       vcpu_get_gr(v,32),
-                       vcpu_get_gr(v,33),
-                       vcpu_get_gr(v,34),
-                       vcpu_get_gr(v,35),
-                       vcpu_get_gr(v,36));
-               break;
-           case 0xfffb: // test dummy hypercall
-               regs->r8 = domU_staging_read_8(vcpu_get_gr(v,32));
-               break;
-
            case __HYPERVISOR_dom0_op:
                regs->r8 = do_dom0_op(regs->r14);
                break;
index 60c4ae5e311c5b50fa8f890ea7db29ff8ad5ea17..6e6da4c3ea0dcefa530cc1e7badedd82106ed3ea 100644 (file)
@@ -268,9 +268,6 @@ void start_kernel(void)
     __ia64_init_fpu();
 
     alloc_dom0();
-#ifdef DOMU_BUILD_STAGING
-    alloc_domU_staging();
-#endif
 
     end_boot_allocator();